<!-- 必须全局拥有唯一的id -->
<div id="WfiWorkflowOrgGroup">
    <el-form-q form="query" :field-data="queryFields" search-table="WfiWorkflowOrgList"></el-form-q>
    <div class="yu-toolBar">
        <el-button-group>
            <el-button icon="add" @click="openCreateFn">{{ $t('WfiWorkflowOrgGroup.xz') }}</el-button>
            <el-button icon="edit" @click="openEditFn">{{ $t('WfiWorkflowOrgGroup.xg') }}</el-button>
            <el-button icon="delete" @click="deleteFn">{{ $t('WfiWorkflowOrgGroup.sc') }}</el-button>
            <el-button icon="edit" @click="openDetailFn">{{ $t('WfiWorkflowOrgGroup.zk') }}</el-button>
        </el-button-group>
    </div>
    <el-table-x ref="WfiWorkflowOrgList" :max-height="height" :data-url="urls.dataUrl" :base-params="dataParams" :table-columns="tableColumns">
    </el-table-x>

    <el-dialog-x :center="true" :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible" height="370px" width="700px"
        @close="beforeClose">
        <el-form-x ref="WfiWorkflowOrgForm" :group-fields="updateFields" :disabled="formDisabled" label-width="110px"></el-form-x>
        <div slot="footer" align="center">
            <el-button v-if="dialogStatus=='creat'" type="primary" @click="saveCreateFn()">{{ $t('WfiWorkflowOrgGroup.qd') }}</el-button>
            <el-button v-if="dialogStatus=='update'" type="primary" @click="saveEditFn()">{{ $t('WfiWorkflowOrgGroup.qd') }}</el-button>
            <el-button @click="dialogFormVisible = false">{{ $t('WfiWorkflowOrgGroup.gb') }}</el-button>
        </div>
    </el-dialog-x>
    <!--流程标识及名称选取框-->
    <el-dialog-x :center="true" :title="title" :visible.sync="dialogVisibleWfSign" height="360px" width="550px">
        <el-form-q form="queryWfSign" :field-data="queryWfSignFileds" search-table="wfSignList" :buttons="wfSignButtons"></el-form-q>
        <el-table-x ref="wfSignList" :data-url="urls.wfSignUrl" :base-params="wfSignParams" :table-columns="wfSignTableColumns">
        </el-table-x>
        <div slot="footer" align="center">
            <el-button type="primary" @click="returnWfSign">{{ $t('WfiWorkflowOrgGroup.xqfh') }}</el-button>
        </div>
    </el-dialog-x>

    <!--所属机构ID及名称选取框-->
    <el-dialog-x :center="true" :title="orgTitle" :visible.sync="dialogVisibleOrg" height="360px" width="550px">
        <el-table-x ref="OrgList" :data-url="urls.OrgListUrl" :base-params="OrgParams" :table-columns="OrgTableColumns">
        </el-table-x>
        <div slot="footer" align="center">
            <el-button type="primary" @click="returnOrg">{{ $t('WfiWorkflowOrgGroup.xqfh') }}</el-button>
        </div>
    </el-dialog-x>
</div>